package com.max.xihu.patterns.proto;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author: Max
 * @Date: 2020-09-09 08:08
 * @Description:
 */
public class ProtoFinal implements Cloneable{

    private ArrayList<String> list = new ArrayList<>();

    @Override
    protected Object clone() {
        ProtoFinal protoFinal = null;
        try {
            protoFinal = (ProtoFinal) super.clone();
            this.list = (ArrayList<String>) this.list.clone();
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
        }
        return protoFinal;
    }
}
